home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / graphics / gnuplot / makefile.tc < prev    next >
Makefile  |  1993-05-11  |  6KB  |  200 lines

  1. # make file for Borland C++ 3.x
  2. # uses Borland proprietary overlay manager
  3. # Modified from the TurboC makefile by Maurice Castro
  4. # The compile and link includes debug flags.  Take them out if you
  5. # do not want them included  (-y -v -M, /m /s /v /l)
  6. #
  7. # the makefile no longer depends on a linker options file.
  8. # this file will be created as needed.                (AL 07/17/92)
  9.  
  10. # where to place gnuplot.gih helpfile
  11. HELPFILE = gnuplot.gih
  12. # location of Turbo C compiler
  13. TC = c:\borlandc
  14. #TC = c:\tc
  15. # name of C compiler
  16. CC = bcc
  17. #CC = tcc
  18. # location of TLINK.EXE and TCC.EXE or BCC.EXE
  19. BIN = $(TC)\bin\\
  20. #BIN =
  21. # location of BGI files,
  22. # change this line if not in TC directory, i.e. $(TC)\bgi
  23. BGI = $(TC)\bgi
  24. # location of bgiobj.exe tool - convertion of BGI to a linkable OBJ file.
  25. BGIOBJ = $(TC)\bgi\\
  26. #BGIOBJ =
  27. # location of the system libraries
  28. LIB = $(TC)\lib\\
  29.  
  30. # the memory model to use (l = large code, large data; h = huge)
  31. MODEL = l
  32.  
  33. # -c means don't link, -f means emulate 8087 if not present
  34. # -m? says which model to use
  35. # -M means produce link map
  36. # -y means include line numbers for debugger
  37. # -v means include debug info
  38. # -w- means ignore warnings and do not report them
  39. # -DREADLINE to use the history/line editing capability. If you want this
  40. #    capability add -DREADLINE to CFLAGS
  41. # -DLITE means no hiddenline removal to conserve memory
  42. CFLAGS = -Ff=256 -c -f -m$(MODEL) -w- -I$(TC)\include -DLITE -DMSDOS -DPC -DREADLINE
  43. TERMFLAGS =
  44.  
  45. # With Overlay Support
  46. OVLY1 = -Y
  47. OVLY2 = -Yo
  48. OVERLIB = $(LIB)overlay
  49. SLASHO = /o
  50. ODASH = /o-
  51. # Without Overlay Support
  52. #OVLY1 =
  53. #OVLY2 =
  54. #OVERLIB =
  55. #SLASHO =
  56. #ODASH =
  57.  
  58. OBJ1 =  bitmap.obj command.obj contour.obj eval.obj graphics.obj graph3d.obj
  59. OBJ2 =    help.obj internal.obj misc.obj parse.obj plot.obj readline.obj
  60. OBJ3 =    scanner.obj setshow.obj specfun.obj standard.obj term.obj util.obj
  61. OBJ4 =    version.obj gnubin.obj binary.obj
  62. OBJBGI=    cgaf.obj egavgaf.obj hercf.obj attf.obj
  63.  
  64. OBJS =    $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJBGI)
  65.  
  66. CSOURCE5 = term\aed.trm term\cgi.trm term\dumb.trm term\dxy.trm \
  67.     term\eepic.trm term\epson.trm term\fig.trm term\hp26.trm \
  68.     term\hp2648.trm term\hpgl.trm term\hpljii.trm
  69. CSOURCE6 = term\impcodes.h term\imagen.trm term\object.h \
  70.     term\iris4d.trm term\kyo.trm term\latex.trm term\pc.trm
  71. CSOURCE7 = term\post.trm term\qms.trm term\regis.trm term\sun.trm \
  72.     term\t410x.trm term\tek.trm term\unixpc.trm term\unixplot.trm \
  73.     term\v384.trm term\x11.trm
  74. CSOURCE8 = contour.c specfun.c gnubin.c binary.c
  75.  
  76. all: gnuplot.exe $(HELPFILE) demo\bf_test.exe
  77.  
  78. # use linkopt.tc to avoid command-line overflow
  79.  
  80. gnuplot.exe: $(OBJS) linkopt.tc
  81. # With or without debug information (select one)
  82. #    $(BIN)tlink /m /s /v /l @linkopt.tc
  83.     $(BIN)tlink @linkopt.tc
  84.  
  85. # create linker options file
  86. # note that when you change the model or switch overlaying,
  87. # you will have to execute 'make clean'
  88.  
  89. linkopt.tc: makefile.tc
  90.     echo  >linkopt.tc $(LIB)C0$(MODEL) +
  91.     echo >>linkopt.tc $(SLASHO) $(OBJ1) +
  92.     echo >>linkopt.tc $(OBJ2) +
  93.     echo >>linkopt.tc $(OBJ3) +
  94.     echo >>linkopt.tc $(OBJ4) +
  95.     echo >>linkopt.tc $(ODASH) $(OBJBGI) +
  96.     echo >>linkopt.tc ,gnuplot,gnuplot, +
  97.     echo >>linkopt.tc $(OVERLIB) +
  98.     echo >>linkopt.tc $(LIB)emu +
  99.     echo >>linkopt.tc $(LIB)math$(MODEL) +
  100.     echo >>linkopt.tc $(LIB)c$(MODEL) +
  101.     echo >>linkopt.tc $(LIB)graphics
  102. #    echo >>linkopt.tc -----
  103. #    echo >>linkopt.tc this file is generated automatically. don't change it, change the makefile.
  104.  
  105. # default rules
  106.  
  107. .c.obj:
  108.     $(BIN)$(CC) $(OVLY2) $(CFLAGS) $<
  109.  
  110. # The default for files is to be compiled for overlaying if OVLY1 and
  111. # OVLY2 are defined.  plot.c and parse.c are not suitable for overlaying.
  112.  
  113. bitmap.obj: bitmap.c bitmap.h plot.h
  114.  
  115. command.obj: command.c plot.h setshow.h help.h
  116.     $(BIN)$(CC) $(OVLY2) $(CFLAGS) -DHELPFILE="$(HELPFILE)" command.c
  117.  
  118. contour.obj: contour.c plot.h
  119.  
  120. eval.obj: eval.c plot.h
  121.  
  122. graphics.obj: graphics.c plot.h setshow.h
  123.  
  124. graph3d.obj: graphics.c plot.h setshow.h
  125.  
  126. help.obj: help.c plot.h help.h
  127.  
  128. internal.obj: internal.c plot.h
  129.  
  130. misc.obj: misc.c plot.h setshow.h help.h
  131.  
  132. parse.obj: parse.c plot.h
  133.     $(BIN)$(CC) $(OVLY1) $(CFLAGS) parse.c
  134.  
  135. plot.obj: plot.c plot.h setshow.h
  136.     $(BIN)$(CC) $(OVLY1) $(CFLAGS) plot.c
  137.  
  138. readline.obj: readline.c
  139.  
  140. scanner.obj: scanner.c plot.h
  141.  
  142. setshow.obj: setshow.c plot.h setshow.h
  143.  
  144. specfun.obj: specfun.c
  145.  
  146. standard.obj: standard.c plot.h
  147.  
  148. # the CSOURCE? dependencies are not up to date (but who cares)
  149. term.obj: term.c term.h plot.h setshow.c bitmap.h $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
  150.     $(BIN)$(CC) $(OVLY2) $(CFLAGS) $(TERMFLAGS) -Iterm term.c
  151.  
  152. util.obj: util.c plot.h
  153.  
  154. version.obj: version.c
  155.  
  156. # convert gnuplot.doc to gnuplot.gih
  157. $(HELPFILE): doc2gih.exe docs\gnuplot.doc
  158.     doc2gih docs\gnuplot.doc $(HELPFILE)
  159.  
  160. doc2gih.exe: docs\doc2gih.c
  161.     $(BIN)$(CC) -w- -ml -I$(TC)\include -L$(TC)\lib docs\doc2gih.c
  162.  
  163. doc2tex.exe: docs\doc2tex.c
  164.     $(BIN)$(CC) -w- -ml -I$(TC)\include -L$(TC)\lib docs\doc2tex.c
  165.  
  166. demo\bf_test.exe: bf_test.c binary.obj
  167.     $(BIN)$(CC) -edemo\bf_test.exe -w- -m$(MODEL) -I$(TC)\include -L$(TC)\lib bf_test.c binary.obj
  168.  
  169. # convert Borland Graphics Interface files to object for linking
  170. cgaf.obj: $(BGI)\cga.bgi
  171.     $(BGIOBJ)bgiobj /F $(BGI)\cga
  172.  
  173. egavgaf.obj: $(BGI)\egavga.bgi
  174.     $(BGIOBJ)bgiobj /F $(BGI)\egavga
  175.  
  176. hercf.obj: $(BGI)\herc.bgi
  177.     $(BGIOBJ)bgiobj /F $(BGI)\herc
  178.  
  179. attf.obj: $(BGI)\att.bgi
  180.     $(BGIOBJ)bgiobj /F $(BGI)\att
  181.  
  182. # clean target - remove all temp files, but leave executable intact
  183. # needed when changing configuration (model or overlaying)
  184.  
  185. clean:
  186.     del *.obj
  187.     del gnuplot.map
  188.     del linkopt.tc
  189.     del doc2gih.exe
  190.  
  191. # realclean target - remove all files created by the makefile
  192.  
  193. realclean: clean
  194.     del gnuplot.exe
  195.     del gnuplot.gih
  196.     del demo\bf_test.exe
  197.     del demo\binary1
  198.     del demo\binary2
  199.     del demo\binary3
  200.